CREATE TABLE [dbo].[T_PRODUCT]
(
[PRODUCT_ID] [bigint] NOT NULL IDENTITY(1, 1),
[PRODUCT_NAME] [varchar] (400) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[PRICE] [decimal] (18, 2) NOT NULL,
[CREATE_DATE] [datetime] NOT NULL,
[DISABLE_DATE] [datetime] NULL,
[PRODUCT_STATUS] [bit] NOT NULL,
[TYPE_PRODUCT_ID] [int] NOT NULL,
[PRODUCT_CODE] [varchar] (4) COLLATE SQL_Latin1_General_CP1_CI_AS NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[T_PRODUCT] ADD CONSTRAINT [PK__T_PRODUC__52B417633263E5CC] PRIMARY KEY CLUSTERED  ([PRODUCT_ID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[T_PRODUCT] ADD CONSTRAINT [FK_T_PRODUCT_T_TYPE_PRODUCT] FOREIGN KEY ([TYPE_PRODUCT_ID]) REFERENCES [dbo].[T_TYPE_PRODUCT] ([TYPE_PRODUCT_ID])
GO
